#include"SList.h"
void SLTPrint(SL** phead)
{
	SL* flag = *phead;
	while (flag != NULL)
	{
		printf("%d-> ", flag->num);
		flag = flag->SLP;
	}
	printf("NULL");
}

void SLPushFront(SL** phead, SLdata x)
{
	SL* pmov = (SL*)malloc(sizeof(SL));
	if (pmov == NULL)
	{
		perror("malloc");
		return;
	}
	pmov->SLP = NULL;
	pmov->SLP = *phead;
	pmov->num = x;
	*phead = pmov;
}